pf = {
	loadCMPF:function(cm) {
		if(!cm) return;
		var cmpf = localStorage.getItem("cmpf");
		if(!cmpf) return;
		var cmpfs = cmpf.split(';');
		for(var j=0; j<cmpfs.length; j++) {
			var option = cmpfs[j];
			var value = cmpfs[++j];
			if(value == "false") value = false;
			if(value == "true") value = true;
			cm.setOption(option, value);
		}
	},
	addCMPF:function(option, value) {
		var cmpf = localStorage.getItem("cmpf");
		if(cmpf) {
			var pos = cmpf.indexOf(option);
			if( pos == -1) {
				cmpf = cmpf.concat(option + ";" + value + ";");
				localStorage.setItem("cmpf", cmpf);
			} else {
				var i = cmpf.indexOf(";", pos);
				var j = cmpf.indexOf(";", i+1);
				cmpf = cmpf.replace(cmpf.substring(i+1,j), value);
				localStorage.setItem("cmpf", cmpf);
			}
		} else {
			localStorage.setItem("cmpf", option + ";" + value + ";");
		}
	},
	loadSBPF:function(statusBar) {
		if(!statusBar) return;
		var sbpf = localStorage.getItem("sbpf");
		if(!sbpf) return;
		statusBar.style.display = sbpf;
	},
	addSBPF:function(value){
		localStorage.setItem("sbpf", value);
	}
};